﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
     <link href="@Url.Content("~/JPlayer/skin/jplayer.blue.monday.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/themes/base/jquery.ui.all.css")" type="text/css" rel="stylesheet" />
    <script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-1.8.11.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/js/jquery.jplayer.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")"  type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Common/Common.js")" type="text/javascript"></script>   
    <script src="@Url.Content("~/Scripts/Common/jsPlayListStorage.js")" type="text/javascript"></script>   
   
    <style type="text/css">
      
    </style>   
    <script type="text/javascript">
        $(document).ready(function () {
            $(".divMenu").live("click",function () {
                var url = $(this).attr("data-url");
                if (url) {
                    window.location.href = url;
                }
            });
           
            $(".divUploadMenu").hover(
                function () {                   
                    $(this).children().show();
                    $(this).children().not(".divDisplay").children().addClass("divMenu")
                },
                function () {
                    $(this).children().children().remove("divMenu")
                    $(this).children().not(".divDisplay").hide();
                });
        });
    </script>   
</head>
<body>
    <div>
        <div class="divtopbar">
            <div style="width: 1024px; margin: 0 auto;">               
                    @if (HttpContext.Current.User.Identity.IsAuthenticated)
                    { 
                         <div id="divLog" style="float:left">
                                <div style="">你好!@HttpContext.Current.User.Identity.Name</div>
                         </div>
                       
                        <div style="float:right">@Html.ActionLink("注销", "Logout", "Account", new { area=""}, new { @class = "alogon" })</div>;
                         if(HttpContext.Current.User.IsInRole("Admin"))
                        {
                        <div style=" float:right; margin-right:5px;">@Html.ActionLink("后台管理", "Index", "MangeHome",null, new { @class="alogon"})</div>
                    }
                    }
               else
                {
                    <div style="float:right">@Html.ActionLink("登陆", "Logon", "Account", null, new { @class="alogon"})</div>
                 }
            </div>
        </div>
        <div class="header">            
            <div style="width: 1024px; height:74px; margin: 0 auto; clear:both; background-image:url(/imgResource/Title.png); background-repeat:no-repeat;">               
                
            </div>          
        </div>
          <div class="menuH">
              <div style="width: 1024px; margin: 0 auto;">
              <div id="divHomeIndex" class="divMenu" data-url="@Url.Action("Index","Home")">
                  首页
              </div>
                   <div id="divHomeAlbumList"  class="divMenu" data-url="@Url.Action("AlbumList","Home")">
                  专辑列表
              </div>
                    <div id="divHomeSongsList" class="divMenu" data-url="@Url.Action("SongsList","Home")">
                  歌曲列表
              </div>
                    <div id="divHomeSingerList" class="divMenu" data-url="@Url.Action("ArtistsList","Home")">
                  歌手列表
              </div>           
             <div  class="divCollectTitle" style="float:left;" onclick="javascript:window.location.href='@Url.Action("Collect","Personal")'" >我的收藏</div>
             <div style="float:right;margin-top:4px;">
                  <div class="divSearch">
                      <div class="divInput" ><input id="txtQText" name="g" type="text" /></div>
                      <div id="btnSearch" class="divSearchBtn">搜索</div>
                  </div>
              </div>
           </div>
             
          </div>
        <div style="clear:both;"></div>
        <div id="divMain">
            @RenderBody()
        </div>
        <div id="divfooter">Victor.Zhang(2012)</div>
    </div>
    <div onclick="history.back();" class="divReturnPre">返回上页</div>
    <div style="height:20px; width:50px; position:absolute;display:none; background-color:#669900;z-index:99999; color:#fff; border-radius:2px;" id="divMsg"></div>
</body>
</html>
